<%@page language="C#" validateRequest="false" Debug="true" %>
<%@import namespace="System" %>
<%@import namespace="System.Collections.Generic" %>
<%@import namespace="System.Diagnostics" %>
<%@import namespace="System.Data"%>

<%@import namespace="My.Data"%>
<%@import namespace="My.Docs" %>
<%@import namespace="My.Product" %>
<%@import namespace="My.Application" %>

<script runat="server">

  // 应用程序对象
  WebApp app;

  //string timeIt;
  //
  protected void Page_Init(object sender,EventArgs e)
  {
      /// // 开始计时
      /// Stopwatch time = Stopwatch.StartNew();
      /// //------------------------------------------------
            
			My.Application.Configuration.GetInstance();
      
      /// //------------------------------------------------
      /// // 结束计时
      /// time.Stop();
      /// long ticksThisTime = time.ElapsedMilliseconds;            //time.ElapsedTicks;
      /// Response.Write( " ++++++ " + ticksThisTime + "毫秒" );
  }
  protected void Page_Error(object sender,EventArgs e)
  {
      Exception objErr = Server.GetLastError().GetBaseException();
      string err =  "<b>Error Caught in Page_Error event</b><hr><br>" +
          "<br><b>Error in: </b>" + Request.Url.ToString() +
          "<br><b>Error Message: </b>" + objErr.Message.ToString()+
          "<br><b>Stack Trace:</b><br>" +
                        objErr.StackTrace.ToString();
      Response.Write(err.ToString());
      //Server.ClearError();

  }

</script>